<?php
class Religious extends Controller {
    public function index() {
        //$this->template->load('admintemplate', 'branch/index');
    }

    public function info()
    {
        $category = $this->uri->segment(3);
        $this->load->model("common_model");

        $religious_info = $this->common_model->getReligiousInfo(ucfirst($category));
        $data['religious_info'] = $religious_info;

        $data['category'] = $category;
        $this->template->load('template', 'religious', $data);

    }

    public function details()
    {
        $orgid = $this->uri->segment(3);
        $this->load->model("common_model");

        $detail_arr = $this->common_model->getOrgDetailsById($orgid);
        $img_arr = $this->common_model->getGalleryImages($orgid);
        $filename1 = $this->common_model->getGalleryImage($orgid);
        $data['detail_arr'] = $detail_arr;
        $controller = $this->router->fetch_class();
        $action = $this->router->fetch_method();
        $data['action'] = $action;
        $data['controller'] = $controller;
        $data['img_arr'] = $img_arr;
        $data['filename1'] = $filename1;
        $this->template->load('template', 'relorgdetails', $data);

    }
}
?>